package com.fowo.api.model.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 产品图片 导入导出辅助模型 */
@Data
public class ProductImgExcelPo {

  @ExcelProperty(value = "所属产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "所属产品")
  private Long productId;

  @Size(max = 50, message = "名称长度不能超过20")
  @ExcelProperty(value = "名称")
  private String name;

  @Size(max = 50, message = "大小长度不能超过20")
  @ExcelProperty(value = "大小")
  private String imgKb;

  @Size(max = 50, message = "是否主图长度不能超过20")
  @ExcelProperty(value = "是否主图")
  private String isMain;
}
